Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetEnum Method / GetEnum<T>(IPdfDict,PdfName,Nullable<T>) Method
The current dictionary.
The key identifying the value.
The default value.

In This Topic
    GetEnum<T>(IPdfDict,PdfName,Nullable<T>) Method
    In This Topic
    Gets the nullable enum value associated with the specified key. If the value does not exist or cannot be converted to an enum, returns defValue (which can be null).
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As System.Nullable(Of T) _
    ) As System.Nullable(Of T)
    public static System.Nullable<T> GetEnum<T>( 
       IPdfDict dict,
       PdfName key,
       System.Nullable<T> defValue
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value associated with the specified key, or defValue.
    See Also